package bpm.dao.impl.foreignactive;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import bpm.domain.foreignactive.ForeignActiveAttach;

public class ForeignActiveAttachRowMapper implements RowMapper {

	public Object mapRow(ResultSet result, int i) throws SQLException {
		ForeignActiveAttach faa = new ForeignActiveAttach();
		faa.setId(result.getString("ID"));
		faa.setBaseID(result.getString("BASEID"));
		faa.setAtFileid(result.getString("ATFILEID"));
		faa.setFileTitle(result.getString("FILENAME"));
		faa.setFileName(result.getString("FILENAME"));
		faa.setFileExName(result.getString("FILEEXNAME"));
		faa.setFileSize(result.getString("FILESIZE"));
		faa.setDepositDate(result.getDate("DEPOSITDATE"));
		faa.setStatus(result.getString("STATUS"));
		faa.setDepositUserfullid(result.getString("DEPOSITUSERFULLID"));
		faa.setContentType(result.getString("CONTENTTYPE"));
		faa.setRemark(result.getString("REMARK"));
		faa.setDepositUserName(result.getString("DEPOSITUSERNAME"));
		faa.setUpdateUserfullid(result.getString("UPDATEUSERFULLID"));
		faa.setUpdateUserName(result.getString("UPDATEUSERNAME"));
		faa.setUpdateDate(result.getDate("UPDATEDATE"));
		
		return faa;
	}

}
